<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>企业情况查询</title>
<base href="<%=basePath%>">
<!-- start: CSS -->
<link id="bootstrap-style" href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/bootstrap-responsive.min.css" rel="stylesheet">
<link id="base-style" href="css/style.css" rel="stylesheet">
<link id="base-style-responsive" href="css/style-responsive.css"
	rel="stylesheet">
<!-- end: CSS -->
<!-- start: JavaScript-->
<script src="js/jquery-1.9.1.min.js"></script>
<script src="js/jquery-migrate-1.0.0.min.js"></script>
<script src="js/jquery-ui-1.10.0.custom.min.js"></script>
<script src="js/jquery.ui.touch-punch.js"></script>
<script src="js/modernizr.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.cookie.js"></script>
<script src='js/fullcalendar.min.js'></script>
<script src='js/jquery.dataTables.min.js'></script>
<script src="js/excanvas.js"></script>
<script src="js/jquery.flot.js"></script>
<script src="js/jquery.flot.pie.js"></script>
<script src="js/jquery.flot.stack.js"></script>
<script src="js/jquery.flot.resize.min.js"></script>
<script src="js/jquery.chosen.min.js"></script>
<script src="js/jquery.uniform.min.js"></script>
<script src="js/jquery.cleditor.min.js"></script>
<script src="js/jquery.noty.js"></script>
<script src="js/jquery.elfinder.min.js"></script>
<script src="js/jquery.raty.min.js"></script>
<script src="js/jquery.iphone.toggle.js"></script>
<script src="js/jquery.uploadify-3.1.min.js"></script>
<script src="js/jquery.gritter.min.js"></script>
<script src="js/jquery.imagesloaded.js"></script>
<script src="js/jquery.masonry.min.js"></script>
<script src="js/jquery.knob.modified.js"></script>
<script src="js/jquery.sparkline.min.js"></script>
<script src="js/counter.js"></script>
<script src="js/retina.js"></script>
<script src="js/custom.js"></script>
<script src="js/echarts.min.js"></script>
<script src="page/pagetool.js"></script>
<!-- end: JavaScript-->

<script type="text/javascript">
	var pageNum = 1;
	$(function() {
		pageNum = setPage(pageNum, 1, "");
	})
	function keydown(){
		if (event.keyCode == 13)
			search();
	}

	function search() {
		var name = $("#sname").val();
		$.ajax({
			url : "",
			type : "POST",
			dataType : "json",
			data : {
				"name" : name
			},
			success : function() {
				var num = 0
				$(".entinfo").remove();
				$.each(data, function(index, info) {
					var entinfo = $(".entlist").clone();
					entinfo.removeClass("entlist");
					stuin.addClass("entinfo");
					entinfo.removeAttr("style");
					entinfo.attr("id", "ent" + (num + 1) + "f");
					entinfo.find("#comp").text("123");
					entinfo.find("#job").text("123");
					entinfo.find("#num1").text("123");
					entinfo.find("#loca").text("123");
					entinfo.find("#num2").text("123");
					entinfo.find("#num3").text("123");
					entinfo.find("#num4").text("123");
					entinfo.find("#num5").text("123");
					entinfo.find("#num6").text("123");
					entinfo.find("#num7").text("123");
					$("#ent" + num + "f").after(entinfo);
					num++;
				})
			}

		})
	}
</script>
</head>
<body>


	<div class="container-fluid-full">
		<div class="row-fluid">
			<!-- start: Header -->
			<jsp:include page="header.jsp"></jsp:include>
			<!-- start: Header -->
			<jsp:include page="sidebar.jsp"></jsp:include>

			<!-- start: Content -->
			<!-- start: 主体 -->
			<div id="content" class="span10">
				<ul class="breadcrumb">
					<li><i class="icon-home"></i> <a href="index.jsp">Home</a> <i
						class="icon-angle-right"></i></li>
					<li>企业情况查询</li>
				</ul>


				<div class="row-fluid">
					<!--start写在这里-->


					<div class="row-fluid">
						<div class="box span12">
							<div class="box-header" data-original-title>
								<h2>
									<i class="halflings-icon white user"></i><span class="break"></span>企业信息查询
								</h2>
								<div align="right">
									<button type="button" class="btn btn-success" onclick="alert(123)" >导出Excel</button>
								</div>
							</div>
							<div class="box-content">
								<div align="right">
									<input type="text" placeholder="请输入企业名" id="sname" onkeydown="keydown()"/>
									<button class="btn btn-success" onclick="search()">搜索</button>
								</div>
								<table
									class="table table-striped table-bordered bootstrap-datatable">
									<thead>
										<tr>
											<th>企业名称</th>
											<th>岗位名称</th>
											<th>招聘人数</th>
											<th>就业地点</th>
											<th>笔试人数</th>
											<th>面试人数</th>
											<th>offer数</th>
											<th>笔试通过率</th>
											<th>面试通过率</th>
											<th>成功率</th>
										</tr>
									</thead>
									<tbody>
										<tr class="entlist" id="ent0f" style="display: none;">
											<td id="comp">南京烽火</td>
											<td class="center" id="job">Java研发</td>
											<td class="center" id="num1">20</td>
											<td class="center" id="loca">南京</td>
											<td class="center" id="num2">200</td>
											<td class="center" id="num3">100</td>
											<td class="center" id="num4">30</td>
											<td class="center" id="num5">50%</td>
											<td class="center" id="num6">30%</td>
											<td class="center" id="num7">10%</td>
											<!-- <td class="center"><a class="btn btn-success"
												onclick="alert(1);"> <i
													class="halflings-icon white zoom-in"></i></a></td> -->
										</tr>
										<!-- 此处追加企业信息 -->

									</tbody>
								</table>
								<jsp:include page="page/pagetool.jsp"></jsp:include>
							</div>
						</div>
						<!--/span-->

					</div>
					<!--/row-->

				</div>


			</div>

			<!-- end: Content -->
			<!-- end: 主体结束 -->
		</div>
		<!--/#content.span10-->
	</div>
	<!--/fluid-row-->
	<jsp:include page="footer.jsp"></jsp:include>

</body>
</html>